/**
 * 用户组相关类型定义
 */

/**
 * 用户组信息
 */
export interface UserGroup {
  id: string | number;
  name: string;
  code?: string;
  description?: string;
  userCount?: number;
  permissions?: string[];
  status?: number; // 0: 禁用, 1: 启用
  createTime?: string;
  updateTime?: string;
}

/**
 * 用户组查询参数
 */
export interface UserGroupParams {
  page: number;
  pageSize: number;
  keyword?: string;
  name?: string;
  code?: string;
  status?: number;
}

/**
 * 用户组响应结果
 */
export interface UserGroupResult {
  list: UserGroup[];
  total: number;
}

/**
 * 用户组成员
 */
export interface UserGroupMember {
  id: string | number;
  groupId: string | number;
  userId: string | number;
  username: string;
  nickname?: string;
  avatar?: string;
  createTime?: string;
} 